package dao

import (
	"usplatformserver/internal/model"
)

// 查询甲状腺病灶列表
func (d *Dao) ThyroidLesionsList(patientStamp string) ([]*model.ThyroidLesionsInfo, error) {
	p := model.PatientInfo{TimeStamp: patientStamp}
	return p.ThyroidLesionsList(d.engine)
}

// 查询乳腺病灶列表
func (d *Dao) BreastLesionsList(patientStamp string) ([]*model.BreastLesionsInfo, error) {
	p := model.PatientInfo{TimeStamp: patientStamp}
	return p.BreastLesionsList(d.engine)
}

// 根据图片信息查询甲状腺病灶信息
func (d *Dao) GetThyroidLesionsInfoByImageInfo(imageId, imageType int) (*model.ThyroidLesionsInfo, error) {
	p := model.PatientInfo{}
	return p.GetThyroidLesionsInfoByImageInfo(d.engine, imageId, imageType)
}

// 根据图片信息查询乳腺病灶信息
func (d *Dao) GetBreastLesionsInfoByImageInfo(imageId, imageType int) (*model.BreastLesionsInfo, error) {
	p := model.PatientInfo{}
	return p.GetBreastLesionsInfoByImageInfo(d.engine, imageId, imageType)
}

// 查询甲状腺病灶信息（按时间倒序）
func (d *Dao) GetThyroidLesionsListDescByTime(patientStamp string) ([]*model.ThyroidLesionsInfo, error) {
	p := model.PatientInfo{TimeStamp: patientStamp}
	return p.GetThyroidLesionsListDescByTime(d.engine)
}

// 查询乳腺病灶信息（按时间倒序）
func (d *Dao) GetBreastLesionsListDescByTime(patientStamp string) ([]*model.BreastLesionsInfo, error) {
	p := model.PatientInfo{TimeStamp: patientStamp}
	return p.GetBreastLesionsListDescByTime(d.engine)
}
